package homeword;

public class 类与对象_girlFriend {
    public static void main(String[] args) {
        //创建对象
        类与对象练习_女朋友 girlFriend01=new 类与对象练习_女朋友();
        //调用女朋友属性
        girlFriend01.name="小红";
        girlFriend01.age=18;
        girlFriend01.height=160.3;
        //输出查看结果
        System.out.println(girlFriend01.name);
        System.out.println(girlFriend01.age);
        System.out.println(girlFriend01.height);
        //调用行为
        girlFriend01.play();
        girlFriend01.sleep();

        //创建第二个女朋友
        类与对象练习_女朋友 girlFriend02=new 类与对象练习_女朋友();
        girlFriend02.name="小丽";
        girlFriend02.age=19;
        girlFriend02.height=158.9;
        //输出查看结果
        System.out.println(girlFriend02.name);
        System.out.println(girlFriend02.age);
        System.out.println(girlFriend02.height);
        //调用行为
        girlFriend01.play();
        girlFriend01.sleep();
    }
}
